package app.circlerequest;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Urloader {
	

	/**
	 * 获取属性
	 * @param key
	 * @return
	 */
	public static String getUrlProperty(String key){
		InputStream is=null;
		try {
			is = Urloader.class.getResourceAsStream("/msgmanageurl.properties");
		} catch (Exception e) {
			System.out.println("没有获取到msgmanageurl.properties文件");
		}
		
		Properties properties = new Properties();
		
		try {
			properties.load(is);
		} catch (IOException e) {
			System.out.println("没有加载到属性文件的流");
		}
		
		String property = properties.getProperty(key);
		
		return property;
	}
}
